import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class ScrollPageView extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return CustomScrollView(
      slivers: [
        SliverAppBar(
          title:Text("CustomScroll Demo"),
          floating: true,
          flexibleSpace: Icon(Icons.icecream),
          expandedHeight: 300,
        ),
        SliverList(delegate: SliverChildBuilderDelegate((context, index) => ListTile(title:Text("Item $index")),
        childCount:1000))
      ],
    );
  }
 }